Page({

  /**
   * 页面的初始数据
   */
  data: {
    schema:[
    ],
    formData:{
    },
    title: '',
    result: '',
    remark: '',
    webUrl: ''
  },
  onLoad(options) {
    console.log('options', options)
    wx.setNavigationBarTitle({
      title: options.title,
    })

    this.setData({
      title: options.title,
      zh:options.zh,
      remark: options.remark,
      webUrl: options.webUrl
    })
  },
  getFormData(e) {
  },
  choose1() {
    wx.createSelectorQuery()
      .select('#scroll-id')
      .boundingClientRect()
      .select('#the-canvas-id')
      .context()
      .select('#scroll-id')
      .fields({
        id: true,
        dataset: true,
        mark: true,
        rect: true,
        size: true,
        scrollOffset: true,
        properties: [],
        computedStyle: ['margin'],
        context: true,
        node: true,
        ref: true
      })
      .select('#scroll-id')
      .node()
      .select('#scroll-id')
      .scrollOffset()
      .exec((r) => {
        this.setData({
          result: r
        })
      })
  }
})